<!DOCTYPE html>
<html lang="en">

<head>
	<meta charset="UTF-8">
	<title>includes方法</title>
</head>

<body>
	<script type="text/javascript">
		// includes() 表示某个数组是否包含给定的值，返回布尔值。

		console.log([1, 2, 3].includes(2));
		console.log([1, 2, 3].includes(22));
	</script>
</body>

</html>